/**
 *
 * @author Bora SAYINER
 * @since Dec 28, 2014 12:45:26 PM
 * @version 1.0
 */
public class CounterThread extends Thread {

	@Override
	public void run() {
		int counter = 0;
		do {
			System.out.println(counter++);
			try {
				Thread.sleep(1000);
			} catch (InterruptedException e) {
				e.printStackTrace();
			}
		} while (counter < 10);
	}
}
